from django import template

register = template.Library()

@register.inclusion_tag('top_navigation_tag.html', takes_context=True)
def top_navigation(context, name=None):
    return {'name': name, 'user': context['user']}

@register.inclusion_tag('left_navigation_tag.html', takes_context=True)
def left_navigation(context, name=None):
    return {'name': name, 'user': context['user']}
